#数组元素排序
import numpy as np
list1 = [[4,3,2],[2,1,4]]
array = np.array(list1)
print(array)
#数组元素每行升序排列
array.sort(axis = 1)
print(array)
#数组元素再按照每列升序排列
array.sort(axis = 0)
print(array)
#将数组元素按照统一升序排列
print(np.sort(array, axis = None))